package com.company.room;

import java.util.HashMap;

/**
 * @description:
 * @author: ZhaoYicong
 * @date: Created in 2020/4/27 17:07
 * @version: v1.0
 * @modified By:
 */
public class Room {
    private String floor;
    private String id;
    private String describe;
    private HashMap<String,Room> nextroomhash =new HashMap<>();

    public Room searchNextRoomByID(String id) {
        Room room=null;
        return room=nextroomhash.get(id);
    }


    public void setNextRoom(String position, Room room){
        this.nextroomhash.put(position,room);
    }

    public HashMap<String, Room> getNextroomhash() {
        return nextroomhash;
    }

    public void setNextroomhash(HashMap<String, Room> nextroomhash) {
        this.nextroomhash = nextroomhash;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Room(String floor, String id, String describe) {
        this.floor = floor;
        this.id = id;
        this.describe = describe;
    }

    public Room() {
    }

    public String getFloor() {
        return floor;
    }

    public void setFloor(String floor) {
        this.floor = floor;
    }
}
